package com.ty.xiaoyu.service;

import com.ty.xiaoyu.entity.Comment;
import com.ty.xiaoyu.exception.CommentOperationException;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentService {

    // 根据回贴id获取评论列表
    List<Comment> getCommentListByReplyId(@Param("replyId") String replyId) throws CommentOperationException;

    // 新增评论
    Comment addComment(@Param("comment") Comment comment) throws CommentOperationException;

    // 根据id获取评论
    Comment getCommentById(@Param("commentId") String commentId);
}
